#include <iostream>
#include <list>
using std::list;
using std::cout;
using std::endl;
int main()
{
    list<int> a = {1,2,3,4,5,6,7,8};
    for (auto iter : a)
    {
        cout<<iter<<"  "<<endl;
    }
    cout<<*(a.begin())<<endl;
    
}